//
// Created by tacom on 22-9-1.
//

#ifndef CVCUDAIMPL_SEGCUDACOMMON_H
#define CVCUDAIMPL_SEGCUDACOMMON_H

#include "opencv2/opencv.hpp"
#include "ApplicationConfig.h"

class DLL_PUBLIC SegCudaCommon {
    /**
     * Cuda模块执行过程中的工具类
     *  - 承载内核运算、debugger等用处
     */
public:
    static inline int calBlockSize(int x, int y){ return (int) ((x + y - 1) / y); };
    static void deviceImgShow(cv::cuda::GpuMat &in, int time = 0);
    static void hostImgShow(cv::Mat &in, int time = 0);

};


#endif //CVCUDAIMPL_SEGCUDACOMMON_H
